<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            color: black;
            background-color: aqua;
            line-height: 300px;
            text-align: center;
            width: 300px;
            height: 300px;
            float: left;
            margin-left: 50px;
        }
        .aa:hover {
            transform: rotateX(180deg);
            transition: all 2s;
        }
        .bb:hover {
            transform: rotateY(180deg);
            transition: all 2s;
        }
        .cc:hover {
            transform: rotateZ(180deg);
            transition: all 2s;
        }
    </style>
</head>
<body>
    <div class="aa">x轴</div>
    <div class="bb">y轴</div>
    <div class="cc">z轴</div>
</body>
</html>